﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Vehices
{
    class Vehice
    {
        public abstract class Vehices
        {
        }
            private String name;

            public Vehice()
            {

            }

            public String go()
            {
                return ("");
            }

            public Boolean isEngineOn()
            {
                return false;
            }

        public void startEngine()
        {
        }

        public void stopEngine()
        {

        }

        public string getName()
        {
            return (" ");
        }

        public interface ICargoTransport
        {

             void loadCargo();

        }

    }
    public class Car : Vehice {

	    public Car (){

	    }
	    public override String go(){
		return(" ");
	    }
    }
    public class Person
    {

        public ArraySegment <Vehice> m_Vehice;

        public Person()
        {
        }


        public void addVehice (Vehice v)
        {

        }


        public class Truck : Vehice. ICargoTransport
        {

            public Truck()
            {

            }

        }
        public override String go()
        {
            return ("");
        }

        public void loadCargo()
        {

        }
    }

}
